
{layout name="layout/layout" /}
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
		<ul class="layui-tab-title">
			<li class="layui-this">编辑会员等级</li>
		</ul>
	</div>
	<form class="layui-form1" method="post" action="{:Url('admin/viplevel/add_from')}">
		<div class="layui-form-item">
			<label class="layui-form-label">等级级别</label>
			<div class="layui-input-block">
				<input class="layui-input" type="number" min="1" name="level" value="{$data->level}"/>
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">等级名</label>
			<div class="layui-input-block">
				<input class="layui-input" type="text" name="title" value="{$data->title}"/>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">起始积分</label>
			<div class="layui-input-block" >
				<input class="layui-input" type="number" min="1" name="jifen_up" value="{$data->range_up}"/>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">终止积分</label>
			<div class="layui-input-block" >
				<input class="layui-input" type="number" min="1" name="jifen_down" value="{$data->range_down}"/>
				<span style="font-size: 12px;color: red">
				终止积分必须大于起始积分
				</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">等级权益</label>
			<div class="layui-input-block"  style="line-height:36px">
				{foreach $privilege as $vo}
				<input {if condition="in_array($vo->id,$privileges)"} checked="checked" {/if} type="checkbox" name="privilege[]" value="{$vo->id}">&nbsp;&nbsp;<span style="margin-right: 30px">{$vo->title}</span>
				{/foreach}
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="hidden" name="id" value="{$data->id}">
				<input class="layui-btn" type="button" value="提交" onclick="this.form.submit()">
			</div>
		</div>
	</form>